package com.ruoyi.park.mapper;

import com.ruoyi.omp.api.domain.BuiRoomFacility;

import java.util.List;

/**
 * 配套设施Mapper接口
 *
 * @author cjie
 * @date 2021-08-31
 */
public interface BuiRoomFacilityMapper {
    /**
     * 查询配套设施
     *
     * @param id 配套设施ID
     * @return 配套设施
     */
     BuiRoomFacility selectBuiRoomFacilityById(String id);

    /**
     * 查询配套设施列表
     *
     * @param buiRoomFacility 配套设施
     * @return 配套设施集合
     */
     List<BuiRoomFacility> selectBuiRoomFacilityList(BuiRoomFacility buiRoomFacility);

    /**
     * 新增配套设施
     *
     * @param buiRoomFacility 配套设施
     * @return 结果
     */
     int insertBuiRoomFacility(BuiRoomFacility buiRoomFacility);

    /**
     * 修改配套设施
     *
     * @param buiRoomFacility 配套设施
     * @return 结果
     */
     int updateBuiRoomFacility(BuiRoomFacility buiRoomFacility);

    /**
     * 删除配套设施
     *
     * @param id 配套设施ID
     * @return 结果
     */
     int deleteBuiRoomFacilityById(String id);

    /**
     * 批量删除配套设施
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
     int deleteBuiRoomFacilityByIds(String[] ids);

    /**
     * 通过房源id删除配套设施
     * @param roomId 房源id
     * @return
     */
    int deleteBuiRoomFacilityByRoomId(String roomId);
}
